package com.iamback.dy.examine.service;

import java.util.List;
import java.util.Set;

import com.iamback.dy.entity.Resource;
import com.iamback.dy.examine.common.Page;
import com.iamback.dy.examine.vo.ZtreeView;
/**
 * <p>
 * 资源服务类
 * </p> 
 */
public interface IResourceService  {

	Page<Resource> findResourcePage(String searchText, Integer pageNum,
			Integer numPerPage);
	/**
	 * 获取角色的权限树
	 * @param roleId
	 * @return
	 */
	List<ZtreeView> tree(int roleId);

	/**
	 * 修改或者新增资源
	 * @param resource
	 */
	void saveOrUpdate(Resource resource);

	Set<Resource> getResourceSet(Integer role);

	void delete(Integer id);

	List<Resource> findResourceParent();

	Resource getResourceBy(Integer id);



}
